home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 201-225 / disk_218 / edlib / edlib.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  3KB  |  65 lines

  1. /*
  2.  *  edlib.h v1.1 Copyright 1989 Edwin Hoogerbeets
  3.  *
  4.  *  This code may be freely redistributed as long as no cost is levied
  5.  *  for it and that this copyright notice remains intact.
  6.  *
  7.  *  edlib contains a bunch of routines that are listed in H&S that are
  8.  *  not in the Manx libraries. Also contains other public domain as well
  9.  *  as freely redistributable routines.
  10.  *
  11.  *  The library was compiled with Manx 3.6a.
  12.  */
  13. #include <exec/types.h>
  14. #define EFAULT 11         /* for chdir */
  15. #define TYPE_DIR  1       /* for filetype */
  16. #define TYPE_FILE 2
  17. #define isdir(a)          (filetype(a) == TYPE_DIR)
  18. #define isfile(a)         (filetype(a) == TYPE_FILE)
  19. #define MDMINEXPT         -323
  20. #define MDMINFRAC         "494065645841246544"
  21. #define ZERO              0.0
  22. #define MDMAXEXPT         309
  23. #define MDMAXFRAC         "17976931348623147"
  24. #define HUGE              1.7976931348623147e308
  25.  
  26. /* character processing functions */
  27. extern int   isbdigit();  /* is the character a `1' or a `0'? */
  28. extern int   iscsym();    /* character part of a valid C symbol? */
  29. extern int   iscsymf();   /* character valid a first char in a C symbol? */
  30. extern int   toint();     /* converts a character 0..f to its hexadecimal value */
  31. extern int   isodigit();  /* is this an octal digit? */
  32.  
  33. /* string processing functions */
  34. extern char *basename();  /* find the file name in a full path name */
  35. extern int  bintoint();   /* these three take character strings and return the */
  36. extern int  dectoint();   /* int value of the number in the string */
  37. extern int  hextoint();
  38. extern char *stoupper();  /* converts a string to entirely upper case chars */
  39. extern char *stolower();  /* converts a string to entirely lower case chars */
  40. extern int  strpos();     /* gives position of first occurance of char in string */
  41. extern int  strrpos();    /* gives position of last occurance of char in string */
  42. extern char *strrpbrk();
  43. extern int  stricmp();    /* case insensitive string compare */
  44. extern int  strnicmp();   /* " with a certain length */
  45. extern int  strcspn();
  46. extern char *strpbrk();   /* these four courtesy Daniel J. Barrett */
  47. extern char *strtok();
  48. extern int  strspn();
  49. extern double strtod();   /* convert a string to a double */
  50. extern char *strdup();    /* return a duplicate of a string */
  51.  
  52. /* other functions */
  53. extern int  chdir();      /* change directory to given path */
  54. extern char *getcwd();    /* get current working directory */
  55. extern int  filetype();   /* return whether name is dir or file */
  56.  
  57. /* definitions to use getopt() */
  58. extern int getopt();
  59. extern char *optarg;
  60. extern int optind;
  61.  
  62.  
  63.  
  64.  
  65.